hicolordir = $(datadir)/icons/hicolor

icons_FILES = \
	16x16/apps/ereseva.png \
	16x16/categories/protocol-msn.png \
	16x16/categories/protocol-google-talk.png \
	16x16/categories/protocol-jabber.png \
	16x16/categories/protocol-sip.png \
	16x16/categories/protocol-link-local.png \
	16x16/actions/phone-pick-up.png \
	16x16/actions/phone-hang-up.png \
	16x16/actions/start-voip-session.svg \
	16x16/status/status-away.png \
	16x16/status/status-online.png \
	16x16/status/status-offline.png \
	16x16/status/status-busy.png \
	16x16/status/status-pending.png \
	16x16/status/status-blocked.png \
	22x22/status/audio-volume-muted.png \
	22x22/actions/phone-hang-up.png \
	22x22/actions/phone-pick-up.png \
	22x22/actions/start-chat-session.png \
	22x22/actions/start-webcam-session.png \
	22x22/actions/start-voip-session.png \
	22x22/actions/start-voip-session.svg \
	22x22/actions/start-chat-session.svg \
	24x24/apps/ereseva.png \
	24x24/actions/phone-pick-up.png \
	24x24/actions/phone-hang-up.png \
	32x32/apps/ereseva.png \
	48x48/rubber-duck.png \
	scalable/rubber-duck.svg \
	scalable/stock_person.svg \
	scalable/emblems/avatar-unknown.svg \
	scalable/actions/phone-pick-up.svg \
	scalable/actions/phone-hang-up.svg \
	scalable/actions/start-voip-session.svg \
	scalable/apps/ereseva.svg \
	scalable/status/status-away.svg \
	scalable/status/status-offline.svg \
	scalable/status/status-online.svg \
	scalable/status/status-busy.svg

install-data-local:
	for icon in $(icons_FILES); do \
		SIZE=`echo $$icon | cut -d/ -f1`; \
		FILE=`echo $$icon | cut -d/ -f3`; \
		$(mkinstalldirs) $(datadir)/icons/hicolor/$$SIZE/apps; \
		$(INSTALL_DATA) $(srcdir)/$$icon $(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
	done
	touch $(hicolordir)
	touch $(datadir)/icons/hicolor

DISTCLEANFILES = Makefile.in

EXTRA_DIST = \
	$(icons_FILES)
